package mcweb.model.service;

import java.sql.SQLException;
import java.util.List;

import javax.mail.MessagingException;

import mcweb.dto.MemberDTO;
import mcweb.model.dao.IMemberDAO;

public interface IMemberService {

	public abstract void addMember(MemberDTO dto) throws SQLException, MessagingException, Exception;

	public abstract void modifyMember(MemberDTO dto) throws SQLException;

	public abstract void deleteMemberById(String id) throws SQLException;

	public abstract void deleteMemberByIds(String[] list) throws SQLException;

	public abstract MemberDTO selectMemberById(String id) throws SQLException;

	public abstract List selectMemberByName(String id) throws SQLException;

	public abstract List selectAllMember() throws SQLException;

	public abstract void setMemberDAO(IMemberDAO memberDAO);

	public abstract String createTmpPwd(String id) throws SQLException, MessagingException;
	
	public abstract void updateTmpPwd(String hashPwd) throws SQLException;

}